<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	version="2.0">
	<xsl:template match="root">


		<table width="100%" cellpadding="2" cellspacing="0"
			bgcolor="#ffffff">
			<tr class="header">
				<td>
					标题:
				</td>
				<td>
					标签:
				</td>
			</tr>

			<xsl:apply-templates select="/root/list/item" />

			<tr>
				<td colspan="2" align="center" class="page">
					共
					<font>
						<xsl:value-of
							select="/root/pagenum/@count" />
					</font>
					条记录 共
					<font>
						<xsl:value-of
							select="/root/pagenum/@totalpage" />
					</font>
					页 当前第
					<font>
						<xsl:value-of
							select="/root/pagenum/@currentpage" />
					</font>
					页
					<font>
						<xsl:attribute name="onclick">javascript:setPage("1");</xsl:attribute>
						[ 首页 ]
					</font>
					<xsl:text> </xsl:text>
					<xsl:apply-templates
						select="/root/pagenumlist/pagenum" />
					<font style="cursor:pointer;">
						<xsl:attribute name="onclick">javascript:setPage("<xsl:value-of
								select="/root/pagenumlist/@totalpage" />");</xsl:attribute>
						[ 末页 ]
					</font>
				</td>
			</tr>
		</table>

	</xsl:template>


	<!-- 分页模板 -->
	<xsl:template match="pagenum">
		<xsl:choose>
			<xsl:when test="@iscurrentpage='true'">
				[
				<font class="bolderred" style="cursor:pointer;">
					<xsl:attribute name="onclick">javascript:ChangePage("<xsl:value-of
							select="@page" />");</xsl:attribute>
					<xsl:value-of select="@page" />
				</font>
				]
				<xsl:text> </xsl:text>
			</xsl:when>
			<xsl:when test="@iscurrentpage='false'">
				<font class="bolder" style="cursor:pointer;">
					<xsl:attribute name="onclick">javascript:ChangePage("<xsl:value-of
							select="@page" />");</xsl:attribute>
					<xsl:value-of select="@page" />
				</font>
				<xsl:text> </xsl:text>
			</xsl:when>
		</xsl:choose>
	</xsl:template>

	<!-- item数据模块 -->
	<xsl:template match="item">
		<tr onmouseover="this.className='tr_over';"
			onmouseout="this.className='tr_out';">
			<td style="height:30px;">
				
			</td>
			<td>
			</td>
		</tr>
		<tr>
			<td colspan="2"></td>
		</tr>
	</xsl:template>
</xsl:stylesheet>
